package com.example.demouser.service.impl;

import com.example.democommon.domain.user.User;
import com.example.demouser.service.FeignService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther Created by l.wang on 2019/2/27.
 */
@Service
public class FeignServiceImpl implements FeignService {


    @Override
    public String getUser(String id) {
        return "user id is " + id;
    }

    @Override
    public List<User> getUsers(User user) {
        List<User> users = new ArrayList<>();
        users.add(user);
        return users;
    }
}
